<template>
    <i
        class="iconfont"
        :class="icon"
        :width="width"
    :height="height"
        :style="{ color: color }"
        @click="_onClick"
    ></i>
</template>

<script>
export default {
    props: {
        icon: {
            type: String,
            default: ""
        },
        color: {
            type: String,
            default: "#333333"
        },
        size: {
            type: [Number, String],
            default: 16
        },
         width: {
        type: String
      },
      height: {
        type: String
      }
    },
    methods: {
        _onClick() {
            this.$emit("click");
        }
    }
};
</script>

<style lang="scss">
@font-face {
  font-family: 'iconfont';  /* project id 1233611 */
  src: url('http://at.alicdn.com/t/font_1233611_isvil5xkxl.ttf') format('truetype'),
}
.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
   width: 1em;
    height: 1em;
    fill: currentColor;
    overflow: hidden;
}

.icon-paper:before {
  content: "\e804";
}

.icon-exam:before {
  content: "\e688";
}

.icon-tiku:before {
  content: "\e621";
}

.icon-xinzeng:before {
  content: "\e631";
}

.icon-chalkboard-teacher:before {
  content: "\ef62";
}

.icon-shijuan:before {
  content: "\e64a";
}

.icon-student:before {
  content: "\e61a";
}

</style>